package com.resource.constant;

/**
 * 请求泛微openAPI相关常量
 *
 * @author jianghao.zhang
 */
public interface OfficeApiConstants {
	Integer SUCCESS = 1;

	/**
	 * 获取token的url
	 */
	String TOKEN_URL = "%s/eoffice10/server/public/api/open-api/get-token";
	/**
	 * 项目列表url
	 */
	String PROJECT_LIST = "%s/eoffice10/server/public/api/project/project-manager-portal/lists/";
	/**
	 * 项目详情url
	 */
	String PROJECT_INFO_URL = "%s/eoffice10/server/public/api/project/project-manager/";
	/**
	 * 项目添加url
	 */
	String PROJECT_ADD = "%s/eoffice10/server/public/api/project/project-manager/add";
	/**
	 * 项目删除url
	 */
	String PROJECT_REMOVE = "%s/eoffice10/server/public/api/project/project-manager/delete";
	/**
	 * 项目更新url
	 */
	String PROJECT_MODIFY = "%s/eoffice10/server/public/api/project/project-manager/";

	/**
	 * 项目任务添加
	 */
	String PROJECT_TASK_ADD = "/eoffice10/server/public/api/project/project-task/project/add";

	/**
	 * 获取企业信息
	 */
	String PROJECT_COMPANY = "%s/webCommonInfo/queryListByNameAndState";

	/**
	 * 合同分页查询
	 */
	String CONTRACT_LIST_URL = "%s/eoffice10/server/public/api/contract";

	/**
	 * 合同查询详情
	 */
	String CONTRACT_DETAIL_URL = "/eoffice10/server/public/api/contract/";

	/**
	 * 合同新增
	 */
	String CONTRACT_ADD_URL = "/eoffice10/server/public/api/contract";

	/**
	 * 合同分页修改
	 */
	String CONTRACT_UPDATE_URL = "/eoffice10/server/public/api/contract/";

	/**
	 * 合同分页删除
	 */
	String CONTRACT_DELETE_URL = "/eoffice10/server/public/api/contract/recycle/";

	/**
	 * 客户管理url
	 */
	String CUSTOMER_INFO_URL = "%s/eoffice10/server/public/api/customer/%s";
	/**
	 * 客户新增管理url
	 */
	String CUSTOMER_SAVE_URL = "%s/eoffice10/server/public/api/customer";
	/**
	 * 客户联系人管理url
	 */
	String CUSTOMER_LINKMAN_URL = "%s/eoffice10/server/public/api/customer/linkman/%s";
	/**
	 * 保存客户联系人管理url
	 */
	String SAVE_CUSTOMER_LINKMAN_URL = "%s/eoffice10/server/public/api/customer/linkman";

	/**
	 * 为空值
	 */
	String IS_NULL = null;
	/**
	 * 客户搜索
	 */
	String IS_SEARCH = "lists?page=%s&limit=%s&search={search}";
	/**
	 * 联系人搜索
	 */
	String LINKMAN_SEARCH = "%s/eoffice10/server/public/api/customer/linkman?page=%s&limit=%s&search={search}";
	/**
	 * 流程表单信息查询
	 */
	String PROCESS_FORM_DATA_URL = "%s/eoffice10/server/public/api/flow/form-data/get-parse-data";

	/**
	 * 人事档案更新
	 */
	String PERSONNEL_OFFICE_MODIFY_URL = "%s/eoffice10/server/public/api/personnel-files/%s";
	/**
	 * true字符串
	 */
	String TRUE = "true";

	/**
	 * http url请求属性key
	 */
	String API_REQURL = "API_REQURL";

	/**
	 * http 请求属性key
	 */
	String API_BEGIN_TIME = "API_BEGIN_TIME";
	/**
	 * http 请求属性key
	 */
	String API_ACTION_METHOD = "API_ACTION_METHOD";
	/**
	 * http 请求属性key
	 */
	String API_REQUEST_BODY = "API_REQUEST_BODY";

	/**
	 * 市场接待
	 */
	String MARKET_RECEPTION = "市场接待";

	/**
	 * 回复工单任务
	 */
	String OFFICE_PROJECT_TASK_REPLY = "%s/project/task/reply_ticket";
	/**
	 * 更新工单任务
	 */
	String OFFICE_PROJECT_TASK_MODIFY = "%s/project/task/update_ticket";
	/**
	 * 新增工单任务
	 */
	String OFFICE_PROJECT_TASK_ADD = "%s/project/task/save_ticket";

	/**
	 * 同步查询工单任务
	 */
	String OFFICE_PROJECT_TASK_QUERY = "%s/project/task/ticket_info/";
}
